int ledout=12;
int buttonread=8;
int val;
void setup()
{
pinMode(ledout,OUTPUT);
pinMode(buttonread,INPUT);

}
void loop
{
val=digitalRead(buttonread);
if (val==High)
	
	{
	digitalwrite(ledout,HIGH);
	}
else
	{
	digitalWrite(ledout,Low);
	}
}
